TARGET = libEncrypt.so

SRCS = ./*.c
OBJS = $(SRCS:.c=.o)

CFLAGS += -fPIC
LDFLAGS += -shared

$(TARGET): $(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)

%.o: %.c
	$(CC) $(CFLAGS) -c $^

default: $(TARGET)

.PHONY: clean

clean:
	-rm -f ./*.o
	-rm -f $(TARGET)